﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model
{
    //复杂类型，不映射表
    [ComplexType]
    public class Contacts
    {
        [DisplayName("联系人")]
        [Required]
        public string Name { get; set; }

        [DisplayName("手机")]
        [Required]
        public string CellPhone { get; set; }

        [DisplayName("办公电话")]
        public string TellPhone { get; set; }

        [DisplayName("备注")]
        public string Memo { get; set; }
    }
}
